package dataObjects;

import java.util.LinkedList;
import java.util.List;

import logicGuiConnection.Movie;
import logicGuiConnection.User;

public class UserImp implements User{

	private String userName;
	private String passWord;
	private List<Movie> wishLst;
	private List<Movie> alreadySeenLst;
	private List<Movie> MustSeeLst;
	
	/*constructor*/
	
	public UserImp(String userName, String password){
		this.userName = userName;
		this.passWord = password;
		this.wishLst = new LinkedList<Movie>();
		this.alreadySeenLst = new LinkedList<Movie>();
		this.MustSeeLst = new LinkedList<Movie>();
	}
	
	/*getters*/
	
	@Override
	public String getUserName() {
		return userName;
	}

	@Override
	public String getPassWord() {
		return passWord;
	}

	@Override
	public List<Movie> getWishList() {
		return wishLst;
	}

	@Override
	public List<Movie> getAlreadySeenList() {
		return alreadySeenLst;
	}

	@Override
	public List<Movie> getMustSeeList() {
		return MustSeeLst;
	}
	
	/*setters*/
	
	public void setUserName(String name){
		this.userName = name;
	}
	
	public void setPassWord(String pw){
		this.passWord = pw;
	}
	
	public void addToWishLst(Movie m){
		this.wishLst.add(m);
	}
	
	public void removeFromWishLst(Movie m){
		this.wishLst.remove(m);
	}
	
	public void addToAlreadySeenLst(Movie m){
		this.alreadySeenLst.add(m);
	}
	
	public void removeFromAlreadySeenLst(Movie m){
		this.alreadySeenLst.remove(m);
	}
	
	public void addToMustLst(Movie m){
		this.MustSeeLst.add(m);
	}
	
	public void removeFromMustSeeLst(Movie m){
		this.MustSeeLst.remove(m);
	}

}
